<html><head><title>GetActiveWindow</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">GetActiveWindow()</font></b></p>
<p><b>Syntax</b></p><blockquote>
WindowNumber = <font color="#3A3966"><b>GetActiveWindow</b></font>()</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Returns the number of the window which currently has the keyboard focus or -1 if no window is active. 

</blockquote><p><b>Parameters</b></p><blockquote>
None.


</blockquote><p><b>Return value</b></p><blockquote>

The number of the window which currently has the keyboard focus or -1 if no window is active. 

</blockquote><p><b>Remarks</b></p><blockquote>

A window can be activated (set the focus on it) with the <a href="setactivewindow.html">SetActiveWindow()</a> function. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="setactivewindow.html">SetActiveWindow()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=eventwparam.html>EventwParam()</a> - <a href="index.html">Window Index</a> - <a href="getwindowcolor.html">GetWindowColor()</a> -><br><br>

</body></html>